# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wf-recorder
pkgver=0.2.1
pkgrel=2
pkgdesc="Screen recording for wlroots-based compositors"
options="!check" # no test suite
url="https://github.com/ammen99/wf-recorder"
arch="all !ppc64le"
license="MIT"
makedepends="meson ffmpeg-dev opencl-headers pulseaudio-dev wayland-dev wayland-protocols
	x264-dev scdoc opencl-icd-loader-dev"
subpackages="$pkgname-doc"
source="https://github.com/ammen99/wf-recorder/releases/download/v$pkgver/wf-recorder-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dman-pages=enabled \
		-Dopencl=enabled \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="e232f4a13d4891863a58667dc87df113f13fabac5042c93143d652472287e84906b261b764869cd02c523f5b3d2331224e2bb71f66814d1a1c9c99a0d28aa40a  wf-recorder-0.2.1.tar.xz"
